﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Dimok;
using Data.LINQ;

public partial class Manager_Loan_TruthInLending : Dimok.Aspx.Manager.Page_AL {
	public string SnapshotName { get { return Request["ssn"] + ""; } }
	protected void Page_Load(object sender, EventArgs e) {
		Dimok.Web.UI.JS.RegisterCommonIncludes(Page);
		Title = "Snapshot: " + SnapshotName;
		MotoBank mb = new MotoBank();
		//var a = mb.t_LoanInfo_Snapshots.Select(s => new { s.LoanID, s.SnapshotName }).GetDataTable(mb,"Snapshots");
		xmlTIL_Snapshot.InnerHtml =
			mb.v_TruthInLending_Snapshots.Select(LoanID,SnapshotName).DefaultIfEmpty().GetDataSet(mb).GetXml();
	}
	protected override void Render(HtmlTextWriter writer) {
		ScriptManager.RegisterClientScriptResource(Page, typeof(AjaxControlToolkit.MaskedEditExtender),
			"AjaxControlToolkit.MaskedEdit.MaskedEditBehavior.js");
		base.Render(writer);
	}
}
